<?php

namespace App\Http\Controllers\Api;

class UserController extends ApiBase
{
    /**
     * 
     * 管理后台登录账号注册
     * 
     */
    public function adminRegister(\App\Server\Admin\User $userServer)
    {
        return $userServer->register();
    }

    /**
     * 
     * 管理后台登录
     * 
     */
    public function adminLogin(\App\Server\Admin\User $userServer)
    {
        return $userServer->login();
    }
   
    /**
     * 
     * 管理后台退出登录
     * 
     */
    public function adminLogout(\App\Server\Admin\User $userServer)
    {
        return $userServer->logout();
    }


    /**
     * 
     * 获取管理员信息
     * 
     */
    public function adminUserInfo(\App\Server\Admin\User $userServer)
    {
        return $userServer->userInfoGet();
    }
}
